-- GENERATED SPELL FOR [Infesting Jormungar] --


function spell0_30148(pUnit, Event) --@Jormungar Bite,n/a--
pUnit:FullCastSpellOnTarget(56103,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30148', 613, 1)
end

function spell1_30148(pUnit, Event) --@Powerful Bite,n/a--
pUnit:FullCastSpellOnTarget(48287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30148', 5299, 1)
end

function Sorts_30148(pUnit, Event)
local choix_sorts_30148 = math.random(0, 1)
if choix_sorts_30148 == 0 then
pUnit:RegisterEvent('spell0_30148', 1, 1)
end
if choix_sorts_30148 == 1 then
pUnit:RegisterEvent('spell1_30148', 1, 1)
end
end

function mob30148_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30148', math.random(1500, 3000), 1)
end

function mob30148_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30148_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30148_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30148, 1, 'mob30148_Action')
RegisterUnitEvent(30148, 2, 'mob30148_Leave')
RegisterUnitEvent(30148, 3, 'mob30148_Kill')
RegisterUnitEvent(30148, 4, 'mob30148_Die')
